<div class="finance-table">
        <div class="finance-table-heading">
            <ul>
                <li class="active"><a href="#tab1" data-toggle="tab">收入明细</a></li>
                <li>|</li>
                <li><a href="#tab2" data-toggle="tab">支出明细</a></li>
            </ul>
        </div>
        <div class="tab-panes">
            <div id="tab1" class="tab-pane active">
                <table>
                    <tr>
                        <th>职位名称</th>
                        <th>所属团队</th>
                        <th>任职时间</th>
                        <th>雇主支付</th>
                        <th>实际收入</th>
                    </tr>
                    <empty name='incomeArr'>
                        <tr><td colspan="5">目前没有收入记录</td></tr>
                    <else />
                    <volist name='incomeArr' id='income'>
                        <tr>
                            <td>{$income.jobname}</td>
                            <td>{$income.teamname}</td>
                            <td>{$income.startday|date='Y.m.d',###}</td>
                            <td>{$income.salary}</td>
                            <td>{$income.income}（10%佣金）</td>
                        </tr>
                    </volist>
                    </empty>
                </table>
            </div>
            <div id="tab2" class="tab-pane">
                <table>
                    <tr>
                        <th>人才昵称</th>
                        <th>职位名称</th>
                        <th>任职时间</th>
                        <th>约定薪酬</th>
                        <th>实际支付</th>
                    </tr>
                    <empty name='payoutArr'>
                        <tr><td colspan="5">目前没有支出记录</td></tr>
                    <else />
                    <volist name='payoutArr' id='payout'>
                        <tr>
                            <td>{$payout.talentname}</td>
                            <td>{$payout.jobname}</td>
                            <td>{$payout.startday|date='Y.m.d',###}</td>
                            <td>{$payout.salary}</td>
                            <td>{$payout.payout}（10%佣金）</td>
                        </tr>
                    </volist>
                    </empty>
                </table>
            </div>
        </div>

    </div>
    <div class="finance-table">
        <div class="finance-table-heading">
            <ul>
                <li class="active"><a href="#">提现记录</a></li>
            </ul>
        </div>
        <table>
            <tr>
                <th>姓名</th>
                <th>账户类型</th>
                <th>开户行</th>
                <th>账号</th>
                <th>提取金额</th>
                <th>处理状态</th>
                <th>提现时间</th>
                <th>操作</th>
            </tr>
            <empty name='withdrawArr'>
                <tr><td colspan="8">目前没有提现记录</td></tr>
            <else />
            <volist name='withdrawArr' id='withdraw'>
                <tr>
                    <td>{$userinfo['realname']}</td>
                    <td><if condition="$withdraw['actype'] eq 1">支付宝<elseif condition="$withdraw['actype'] eq 2" />银行账户</if></td>
                    <td>{$withdraw.acserver}</td>
                    <td>{$withdraw.account}</td>
                    <td>{$withdraw.amount}</td>
                    <td><if condition="$withdraw['process'] eq 1">处理中<elseif condition="$withdraw['process'] eq 2"/>成功<elseif condition="$withdraw['process'] eq 3"/>已取消</if></td>
                    <td>{$withdraw.opentime|date='Y.m.d',###}</td>
                    <td>
                    <if condition="$withdraw['process'] eq 1">
                        <a href="javascript:cancelWithdraw();" class="btn btn-green2">取消</a>
                    <else />
                        -
                    </if>
                    </td>
                </tr>
            </volist>
            </empty>
        </table>
    </div>
    <div class="finance-table">
        <div class="finance-table-heading">
            <ul>
                <li class="active"><a href="#">充值记录</a></li>
            </ul>
        </div>
        <table>
            <tr>
                <th>提交申请时间</th>
                <th>状态更新时间</th>
                <th>数额</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            <empty name='chargeArr'>
                <tr><td colspan="5">目前没有充值记录</td></tr>
            <else />
            <volist name='chargeArr' id='charge'>
                <tr data-cid="{$charge.id}">
                    <td>{$charge.ctime|date='Y.m.d H:i:s',###}</td>
                    <td>{$charge.uptime|date='Y.m.d H:i:s',###}</td>
                    <td>{$charge.amount}</td>
                    <td><if condition="$charge['process'] eq 1">等待处理<elseif condition="$charge['process'] eq 2" />充值成功<elseif condition="$charge['process'] eq 3"/>已取消</if></td>
                    <td><if condition="$charge['process'] eq 1"><a href="javascript:cancelCharge();" class="btn btn-green2">取消</a><else/>-</if></td>
                </tr>
            </volist>
            </empty>
        </table>
        <script type="text/javascript">
            function cancelCharge(){
                var self = $(this);
                var cid = self.closest("tr").data("cid");
                
                $.ajax({
                    'url':"{:U('/Finance/cancelcharge_ajax')}",
                    'type':"post",
                    'datatype':'json',
                    'data':{'cid':cid},
                    'success':function(data){
                        
                    }
                });
            }
        </script>
    </div>